package com.woniu.mapper;

import com.woniu.entity.Student;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface StudentMapper {
    public void insert(Student student);
    public void update(Student student);
    public void delete(int id);
    public Student select(int id);
    public List<Student> selectAll();
    List<Student> selectByName(String name);
    List<Student> selectByName01(@Param("name") String name);

    List<Student> selectByNameAndAge(@Param("name") String name,
                                     @Param("age") int age);

    List<Student> selectByNameAndAge01(Student student);
    List<Student> selectByNameAndAge03(@Param("student") Student student,
                                       @Param("age") int age);

    List<Student> selectByIds01(List<Integer> list);
    void insertBatch(List<Student> students);

    Integer selectConditionCount(Student student);
    List<Student> selectConditionData(@Param("student") Student student,@Param("pageIndex") int pageIndex,@Param("pageSize") int pageSize);

    List<Student> selectByNamePlugin(Student student);

}
